<template>
	<view class="outside" @click="goTo(arguments)">
		<image class="img" src="../../static/banner1.jpg" mode="aspectFill"></image>
		<view class="text">
			<view class="title">
				{{title}}
			</view>
			<view class="line">
				{{first}}
			</view>
			<view class="line">
				{{second}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			title: String,
			first: String,
			second: String
		},
		methods: {
			goTo() {
				uni.navigateTo({
					url: "../show/showAntiqueInfo"
				})
			}
		}
	}
</script>

<style>
	.outside {
		width: 100%;
		display: flex;
		align-items: center;
		flex-direction: column;
		margin-bottom: 20rpx;
	}

	.img {
		width: 330rpx;
		height: 330rpx;
		border-radius: 5rpx 5rpx 0 0;
	}

	.text {
		width: 290rpx;
		padding: 20rpx;
		background: #fff;
	}

	.title {
		width: 100%;
		padding: 0 0 20rpx 0;
		font-size: 32rpx;
		font-weight: bold;
		color: #333;
	}

	.line {
		width: 100%;
		font-size: 28rpx;
		line-height: 40rpx;
		color: #666;
	}
</style>
